package com.usooft.metaTalent.core.system.mapper;

import com.usooft.metaTalent.core.system.entity.SearchTerm;
import com.usooft.metaTalent.core.system.query.SearchTermQuery;
import com.usooft.metaTalent.core.system.wrapper.SearchTermWrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SearchTermMapper {
    int add(SearchTerm searchTerm);

    int update(SearchTerm searchTerm);

    SearchTerm get(Long id);

    List<SearchTermWrapper> list(SearchTermQuery query);

    int count(@Param("filter") SearchTermQuery.Filter filter);
}
